﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Hardware.Base
{
    public class Config
    {
        /// <summary>
        /// 设备名称
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 通讯协议：串口，网口（服务器或客户端）
        /// </summary>
        public int Protocol { get; set; }
        public string? IpAddress { get; set; }
        public int Port { get; set; }
        public string? SerialName { get; set; }
        public int BaudRate { get; set; }
        /// <summary>
        /// 0=启用|1=停用
        /// </summary>
        public int Status { get; set; }
    }
}
